﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Admin/Admin.Master" AutoEventWireup="true" CodeBehind="ManagerUser.aspx.cs" Inherits="www.Admin.ManagerUser" %>

<%@ Import Namespace="www.Controllers" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <div class="title">
        DANH SÁCH NHÂN VIÊN
    </div>
    <div class="clear">
    </div>
    
    <div class="frame ">
        <asp:GridView ID="grid_ManagerUser" runat="server" AutoGenerateColumns="False" BackColor="White"
            BorderColor="#3366CC" BorderStyle="None" BorderWidth="1px" Width="100%" AllowPaging="True"
            PageSize="20" ShowHeaderWhenEmpty="True" OnRowCommand="grid_advertise_RowCommand" OnPageIndexChanging="grid_advertise_PageIndexChanging">
            <Columns>
                <asp:TemplateField>
                    <HeaderTemplate>
                        Họ tên
                    </HeaderTemplate>
                    <ItemTemplate>
                        <%#Eval("Name") %>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField>
                    <HeaderTemplate>
                        Hình ảnh
                    </HeaderTemplate>
                    <ItemTemplate>
                      <img src='../<%#Eval("Image") %>' style="width: 100%; height: 50px;position: relative;"/>  
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField>
                    <HeaderTemplate>
                        Ngày sinh
                    </HeaderTemplate>
                    <ItemTemplate>
                        <%#Convert.ToDateTime(Eval("Birthday")).ToShortDateString() %>
                    </ItemTemplate>
                    <ItemStyle HorizontalAlign="Center"></ItemStyle>
                </asp:TemplateField>
                <asp:TemplateField>
                    <HeaderTemplate>
                        Giới tính
                    </HeaderTemplate>
                    <ItemTemplate>
                        <%#Utility.Gender(Convert.ToInt32(Eval("Gender"))) %>
                    </ItemTemplate>
                    <ItemStyle HorizontalAlign="Center"></ItemStyle>
                </asp:TemplateField>
                <asp:TemplateField>
                    <HeaderTemplate>
                        CMND
                    </HeaderTemplate>
                    <ItemTemplate>
                        <%#Eval("Identification") %>
                    </ItemTemplate>
                </asp:TemplateField>
               
                <asp:TemplateField>
                    <HeaderTemplate>
                        Số ĐT
                    </HeaderTemplate>
                    <ItemTemplate>
                        <%#Eval("Tel") %>
                    </ItemTemplate>
                    <ItemStyle HorizontalAlign="Center"></ItemStyle>
                </asp:TemplateField>
                <asp:TemplateField>
                    <HeaderTemplate>
                        Chức vụ
                    </HeaderTemplate>
                    <ItemTemplate>
                        <%#Eval("Ministry") %>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField>
                    <HeaderTemplate>
                        <span id="lblBusiness">Thao tác</span>
                    </HeaderTemplate>
                    <ItemTemplate>
                        <asp:LinkButton ID="lbtGrandRole" CommandName="cmd_grandrole" CommandArgument='<%#Eval("Id") %>' runat="server">Cấp quyền</asp:LinkButton>
                    </ItemTemplate>
                    <HeaderStyle Width="10%" HorizontalAlign="Center"></HeaderStyle>
                    <ItemStyle HorizontalAlign="Center"></ItemStyle>
                </asp:TemplateField>
            </Columns>
            <FooterStyle BackColor="#99CCCC" ForeColor="#003399" />
            <HeaderStyle BackColor="#003399" Font-Bold="True" ForeColor="#CCCCFF" />
            <PagerStyle BackColor="#99CCCC" ForeColor="#003399" HorizontalAlign="Left" />
            <RowStyle BackColor="White" ForeColor="#003399" />
            <SelectedRowStyle BackColor="#009999" Font-Bold="True" ForeColor="#CCFF99" />
            <SortedAscendingCellStyle BackColor="#EDF6F6" />
            <SortedAscendingHeaderStyle BackColor="#0D4AC4" />
            <SortedDescendingCellStyle BackColor="#D6DFDF" />
            <SortedDescendingHeaderStyle BackColor="#002876" />
        </asp:GridView>
    </div>

</asp:Content>
